#pragma once
#include "TrMarket.h"
#include <QTableWidget>
#include <QHeaderView>
#include "NoFocusDelegate.h"
#include "TrMasters.h"

#if _MSC_VER >= 1600
#pragma execution_character_set("utf-8")
#endif

class TrTableConcerned : public QTableWidget, public TrObserver
{
	Q_OBJECT
public:
	explicit TrTableConcerned(QWidget* parent = nullptr);
	void init_ui();
	void setFilters(const std::vector<std::string>& fts);
	virtual void OnReceive(TrResponseID rId, void* wParam, void* lParam) override;

signals:
	void DbClick_Row(const QString& code);

private:
	std::unordered_map<std::string, int>		m_codeInRowId;
	std::vector<std::string>					m_codeFilters;
};

